<extend name="Public/base"/>
<block name="body">
  <form method="post" class="form-horizontal J_ajaxForm" action="{:U("")}">
      <div class="tab-content">
    <div class="space-4"></div>
   
    <div class="form-group">
            <label class="col-sm-2 control-label "> 分类 </label>
            <div class="col-sm-10">
            <span class="lh200">{$cate.name}</span>
               </div>
          </div>
           <div class="space-4"></div>
          <div class="form-group">
            <label class="col-sm-2 control-label "> 上级 </label>
            <div class="col-sm-10">
              <select name="parentid" class="normal_select">
                  <option value="0">作为一级菜单</option>
                   {$select_categorys}
                  </select>
               </div>
          </div>
           <div class="space-4"></div>
          <div class="form-group">
            <label class="col-sm-2 control-label "> 名称 </label>
            <div class="col-sm-10">
              <input type="text"  value="{$data.name}"  name="name" class="col-xs-10 col-sm-5" />
               </div>
          </div>


          <div class="space-4"></div>
          <div class="form-group">
              <label class="col-sm-2 control-label "> 扩展字段 </label>
              <div class="col-sm-10">
                  <input type="text"  value="{$data.kuo_1}"  name="kuo_1" class="col-xs-10 col-sm-5" />
              </div>
          </div>
          
           <div class="space-4"></div>

          <div class="form-group">
              <label class="col-sm-2 control-label "> 图片 </label>
              <div class="col-sm-10">
                  <att model="var" link="1"  action="img"  field="thumb" value="data[thumb]"/>
              </div>
          </div>



          
      </div>
       <if condition="$edit">
     <input type="hidden"  name="id"   value="{$data.id}"  />
      <input type="hidden"  name="catid"   value="{$data.catid}"  />
     <else/>
     <input type="hidden"  name="catid"   value="{$cate.id}"  />
     </if>
      <div class="form-actions">
      <button class="btn btn-info ajax-post"   target-form="J_ajaxForm" type="submit">  <if condition="$edit">更新<else/>添加</if></button>
      	 <a class="btn btn-return" href="__URL__" >返 回</a>
      </div>
    </form>
</block>
<block name="plugin-script"> 
  <script src="__JS__/content.js"></script> 

</block>